Package com.cisco.pt.ipc.sim.impl
Class TcpProcessImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.TcpProcessImpl
- All Implemented Interfaces:
IPCObject,Process,TcpProcess
Information provided by the PKI file:
\class TcpProcess
\brief TcpProcess handles and manipulates the TCP process.
\example network().getDevice("Router0").getProcess("TcpProcess")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionTcpProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionintInformation provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:booleanInformation provided by the PKI file:listen(int port, boolean requestNotify) Information provided by the PKI file:voidsetNagleEnabled(boolean val) Information provided by the PKI file:voidsetNagleWaitingInterval(int interval) Information provided by the PKI file:voidsetUserDefinedMSS(Short mss) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
TcpProcessImpl
public TcpProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getUserDefinedMSS
Information provided by the PKI file:
\brief Returns the maximum segment size value. \return short, the maximum segment size value.- Specified by:
getUserDefinedMSSin interfaceTcpProcess- Returns:
- Short Returns a Short
-
setUserDefinedMSS
Information provided by the PKI file:
\brief Sets the maximum segment size value. \param short, the maximum segment size value.- Specified by:
setUserDefinedMSSin interfaceTcpProcess- Parameters:
mss- Takes in a parameter of mss
-
getUserDefinedWindowSize
public int getUserDefinedWindowSize()Information provided by the PKI file:
\brief Returns the window size. \return int, the window size.- Specified by:
getUserDefinedWindowSizein interfaceTcpProcess- Returns:
- int Returns a int
-
isNagleEnabled
public boolean isNagleEnabled()Information provided by the PKI file:
\brief Returns true if Nagle's algorithm is enabled, otherwise false. \return bool, true if Nagle's algorithm is enabled, otherwise false.- Specified by:
isNagleEnabledin interfaceTcpProcess- Returns:
- boolean Returns a boolean
-
setNagleEnabled
public void setNagleEnabled(boolean val) Information provided by the PKI file:
\brief Enables or disables Nagle's algorithm. \param val, true to enable Nagle's algorithm, false to disable it.- Specified by:
setNagleEnabledin interfaceTcpProcess- Parameters:
val- Takes in a parameter of val
-
getNagleWaitingInterval
public int getNagleWaitingInterval()Information provided by the PKI file:
\brief Returns Nagle's algorithm waiting interval. \return int, Nagle's algorithm waiting interval.- Specified by:
getNagleWaitingIntervalin interfaceTcpProcess- Returns:
- int Returns a int
-
setNagleWaitingInterval
public void setNagleWaitingInterval(int interval) Information provided by the PKI file:
\brief Sets Nagle's algorithm waiting interval. \param interval, Nagle's algorithm waiting interval.- Specified by:
setNagleWaitingIntervalin interfaceTcpProcess- Parameters:
interval- Takes in a parameter of interval
-
listen
Information provided by the PKI file:
\brief Start a tcp connection that listens \param port, port number at which the tcp connection listens at \param requestNotify, true if a notify is requested or false if it's not \return CustomTcpProcess, CustomTcpProcess object- Specified by:
listenin interfaceTcpProcess- Parameters:
port- Takes in a parameter of portrequestNotify- Takes in a parameter of requestNotify- Returns:
- CustomTcpProcess Returns a CustomTcpProcess
-